<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    let str =
        `商品名称：娇茹妮 夏装新款韩版时尚织带字母印花七分袖破洞T恤女宽松百搭学生上衣 红色 M<br />商品编号：12432215697<br />店铺： 正德弘服饰专营店<br />商品毛重：200.00g<br />商品产地：中国大陆<br />货号：788<br />尺码：XXL<br />版型：宽松型<br />主要材质：棉/丝光棉<br />领型：圆领<br />流行元素：印花<br />颜色：红色系<br />袖长：七分袖<br />袖型：常规袖<br />衣长：常规款<br />上市时间：2017夏季<br /><br /><br /><div><div><div><div>&nbsp;</div><div><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;width:100%;">
<tbody>
	<tr><td style="width: 20%;"><img alt="" size="198x159" src="https://img10.360buyimg.com/imgzone/jfs/t5398/231/1752548429/7651/76dec3db/59137800N6d3584db.jpg" /></td><td><table border="0" cellpadding="0" cellspacing="0" style="margin:0px;width:100%;">
	<tbody>
		<tr bgcolor="#484848"><td>尺码</td><td>胸围</td><td>袖长</td><td>衣长</td><td>肩宽</td></tr><tr bgcolor="#f7f7f7"><td>M</td><td>92</td><td>20</td><td>58</td><td>46</td></tr><tr><td>L</td><td>96</td><td>21</td><td>60</td><td>48</td></tr><tr bgcolor="#f7f7f7"><td>XL</td><td>100</td><td>22</td><td>62</td><td>50</td></tr><tr bgcolor="#f7f7f7"><td>XXL</td><td>104</td><td>23</td><td>64</td><td><p>52</p></td></tr>
	</tbody>
	</table></td></tr>
</tbody>
</table></div></div></div><p style="margin: 0px; padding: 0px; color: rgb(102, 102, 102); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;, &quot;Hiragino Sans GB&quot;, u5b8bu4f53, sans-serif;">&nbsp;</p><p style="margin: 0px; padding: 0px; color: rgb(102, 102, 102); font-family: tahoma, arial, &quot;Microsoft YaHei&quot;, &quot;Hiragino Sans GB&quot;, u5b8bu4f53, sans-serif; text-align: center;"><img align="absmiddle" alt="" size="750x750" src="https://img10.360buyimg.com/imgzone/jfs/t5332/14/1683433768/248657/489344a6/59137801Na052ecdb.jpg" style="margin: 0px; padding: 0px; border: 0px; vertical-align: middle; width: 100%;" /><img align="absmiddle" alt="" size="750x750" src="https://img10.360buyimg.com/imgzone/jfs/t5401/279/1708006599/281440/fc05b81b/59137801N652e8c2e.jpg" style="margin: 0px; padding: 0px; border: 0px; vertical-align: middle; width: 100%;" /><img align="absmiddle" alt="" size="750x750" src="https://img10.360buyimg.com/imgzone/jfs/t5083/170/1723976704/239532/172798ab/591377fdNdf64f102.jpg" style="margin: 0px; padding: 0px; border: 0px; vertical-align: middle;width: 100%;" /></p></div><br />`;

    //需求：从字符串里面提取src路径
    var srcReg = /src=\"([^\"]*?)\"/gi;
    var arr = str.match(srcReg);
    var imglist = [];
    arr.forEach(item => {
        let imginf = item.slice(5, -1);
        imglist.push(imginf);
    })
    console.log(arr, 111)
    console.log(imglist, 222)
</script>